package com.liliudong.cursormate.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liliudong.cursormate.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Liudong.li
 * @description 针对表【sys_role(用户角色)】的数据库操作Mapper
 * @createDate 2023-10-24 22:29:24
 * @Entity com.liliudong.cursormate.entity.SysRole
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 选择角色列表拦截器忽略
     *
     * @return {@link List}<{@link String}>
     */
    @InterceptorIgnore
    List<String> selectRoleListInterceptorIgnore();

    /**
     * 按用户id选择角色列表
     *
     * @param userId 用户id
     * @return {@link List}<{@link String}>
     */
    @InterceptorIgnore
    List<String> selectRoleListByUserIdInterceptorIgnore(long userId);
}




